Optimal. Leaf size=129 \[ -\frac {a \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{2 d \sqrt {a-a \cos (c+d x)}}+\frac {3 a \sin (c+d x) \sqrt {\cos (c+d x)}}{4 d \sqrt {a-a \cos (c+d x)}}-\frac {3 \sqrt {a} \tanh ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a-a \cos (c+d x)}}\right )}{4 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.19, antiderivative size = 129, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.115, Rules used = {2770, 2775, 207} \[ -\frac {a \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{2 d \sqrt {a-a \cos (c+d x)}}+\frac {3 a \sin (c+d x) \sqrt {\cos (c+d x)}}{4 d \sqrt {a-a \cos (c+d x)}}-\frac {3 \sqrt {a} \tanh ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a-a \cos (c+d x)}}\right )}{4 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 207
Rule 2770
Rule 2775
Rubi steps
\begin {align*} \int \cos ^{\frac {3}{2}}(c+d x) \sqrt {a-a \cos (c+d x)} \, dx &=-\frac {a \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{2 d \sqrt {a-a \cos (c+d x)}}-\frac {3}{4} \int \sqrt {\cos (c+d x)} \sqrt {a-a \cos (c+d x)} \, dx\\ &=\frac {3 a \sqrt {\cos (c+d x)} \sin (c+d x)}{4 d \sqrt {a-a \cos (c+d x)}}-\frac {a \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{2 d \sqrt {a-a \cos (c+d x)}}+\frac {3}{8} \int \frac {\sqrt {a-a \cos (c+d x)}}{\sqrt {\cos (c+d x)}} \, dx\\ &=\frac {3 a \sqrt {\cos (c+d x)} \sin (c+d x)}{4 d \sqrt {a-a \cos (c+d x)}}-\frac {a \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{2 d \sqrt {a-a \cos (c+d x)}}+\frac {(3 a) \operatorname {Subst}\left (\int \frac {1}{-a+x^2} \, dx,x,\frac {a \sin (c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a-a \cos (c+d x)}}\right )}{4 d}\\ &=-\frac {3 \sqrt {a} \tanh ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a-a \cos (c+d x)}}\right )}{4 d}+\frac {3 a \sqrt {\cos (c+d x)} \sin (c+d x)}{4 d \sqrt {a-a \cos (c+d x)}}-\frac {a \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{2 d \sqrt {a-a \cos (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 4.22, size = 289, normalized size = 2.24 \[ -\frac {\sqrt {\cos (c+d x)} \sqrt {a-a \cos (c+d x)} \left (2 \sqrt {2} \left (\cos \left (\frac {3}{2} (c+d x)\right )-2 \cos \left (\frac {1}{2} (c+d x)\right )\right ) \csc \left (\frac {1}{2} (c+d x)\right ) \sqrt {\cos (c+d x) (\cos (d x)+i \sin (d x))}+3 \sqrt {\cos (c)-i \sin (c)} \left (\cot \left (\frac {1}{2} (c+d x)\right )+i\right ) \tanh ^{-1}\left (\frac {e^{i d x}}{\sqrt {\cos (c)-i \sin (c)} \sqrt {e^{2 i d x} (\cos (c)+i \sin (c))-i \sin (c)+\cos (c)}}\right )+3 \sqrt {\cos (c)-i \sin (c)} \left (\cot \left (\frac {1}{2} (c+d x)\right )+i\right ) \tanh ^{-1}\left (\frac {\sqrt {e^{2 i d x} (\cos (c)+i \sin (c))-i \sin (c)+\cos (c)}}{\sqrt {\cos (c)-i \sin (c)}}\right )\right )}{8 d \sqrt {i \sin (c) \left (-1+e^{2 i d x}\right )+\cos (c) \left (1+e^{2 i d x}\right )}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.61, size = 155, normalized size = 1.20 \[ \frac {3 \, \sqrt {a} \log \left (\frac {4 \, \sqrt {-a \cos \left (d x + c\right ) + a} {\left (2 \, \cos \left (d x + c\right )^{2} + 3 \, \cos \left (d x + c\right ) + 1\right )} \sqrt {a} \sqrt {\cos \left (d x + c\right )} - {\left (8 \, a \cos \left (d x + c\right )^{2} + 8 \, a \cos \left (d x + c\right ) + a\right )} \sin \left (d x + c\right )}{\sin \left (d x + c\right )}\right ) \sin \left (d x + c\right ) - 4 \, \sqrt {-a \cos \left (d x + c\right ) + a} {\left (2 \, \cos \left (d x + c\right )^{2} - \cos \left (d x + c\right ) - 3\right )} \sqrt {\cos \left (d x + c\right )}}{16 \, d \sin \left (d x + c\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.20, size = 165, normalized size = 1.28 \[ \frac {\left (-1+\cos \left (d x +c \right )\right ) \left (2 \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \left (\cos ^{2}\left (d x +c \right )\right )-\sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \cos \left (d x +c \right )-3 \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}+3 \arctanh \left (\sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\right )\right ) \sqrt {-2 a \left (-1+\cos \left (d x +c \right )\right )}\, \left (\cos ^{\frac {3}{2}}\left (d x +c \right )\right ) \sqrt {2}}{8 d \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {3}{2}} \sin \left (d x +c \right )^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 1.09, size = 1063, normalized size = 8.24 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int {\cos \left (c+d\,x\right )}^{3/2}\,\sqrt {a-a\,\cos \left (c+d\,x\right )} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {- a \left (\cos {\left (c + d x \right )} - 1\right )} \cos ^{\frac {3}{2}}{\left (c + d x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________